package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PingtaituiguangMapper;
import com.ruoyi.system.domain.Pingtaituiguang;
import com.ruoyi.system.service.IPingtaituiguangService;

/**
 * 平台推广Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
@Service
public class PingtaituiguangServiceImpl implements IPingtaituiguangService 
{
    @Autowired
    private PingtaituiguangMapper pingtaituiguangMapper;

    /**
     * 查询平台推广
     * 
     * @param pttgId 平台推广主键
     * @return 平台推广
     */
    @Override
    public Pingtaituiguang selectPingtaituiguangByPttgId(Long pttgId)
    {
        return pingtaituiguangMapper.selectPingtaituiguangByPttgId(pttgId);
    }

    /**
     * 查询平台推广列表
     * 
     * @param pingtaituiguang 平台推广
     * @return 平台推广
     */
    @Override
    public List<Pingtaituiguang> selectPingtaituiguangList(Pingtaituiguang pingtaituiguang)
    {
        return pingtaituiguangMapper.selectPingtaituiguangList(pingtaituiguang);
    }

    /**
     * 新增平台推广
     * 
     * @param pingtaituiguang 平台推广
     * @return 结果
     */
    @Override
    public int insertPingtaituiguang(Pingtaituiguang pingtaituiguang)
    {
        return pingtaituiguangMapper.insertPingtaituiguang(pingtaituiguang);
    }

    /**
     * 修改平台推广
     * 
     * @param pingtaituiguang 平台推广
     * @return 结果
     */
    @Override
    public int updatePingtaituiguang(Pingtaituiguang pingtaituiguang)
    {
        return pingtaituiguangMapper.updatePingtaituiguang(pingtaituiguang);
    }

    @Override
    public int updatezt(Pingtaituiguang pingtaituiguang) {
        return pingtaituiguangMapper.updatezt(pingtaituiguang);
    }

    /**
     * 批量删除平台推广
     * 
     * @param pttgIds 需要删除的平台推广主键
     * @return 结果
     */
    @Override
    public int deletePingtaituiguangByPttgIds(Long[] pttgIds)
    {
        return pingtaituiguangMapper.deletePingtaituiguangByPttgIds(pttgIds);
    }

    /**
     * 删除平台推广信息
     * 
     * @param pttgId 平台推广主键
     * @return 结果
     */
    @Override
    public int deletePingtaituiguangByPttgId(Long pttgId)
    {
        return pingtaituiguangMapper.deletePingtaituiguangByPttgId(pttgId);
    }
}
